package com.small.act;

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.BaseAdapter;
import android.widget.GridView;
import android.widget.ImageView;
import android.widget.Toast;

import com.small.R;
import com.small.view.custview.w8.MyImageView;

public class SearchDiscountActivity extends Activity {
    /** Called when the activity is first created. */
	MyImageView joke;
	GridView netGridView;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_searchdiscount_view);
        
        joke=(MyImageView) findViewById(R.id.btn_search1);
        joke.setOnClickIntent(new MyImageView.OnViewClick() {
			
			@Override
			public void onClick() {
				// TODO Auto-generated method stub
				Toast.makeText(SearchDiscountActivity.this, "事件触发", 1000).show();
				System.out.println("1");
			}
		});
        
        
        
        
//        netGridView = (GridView)findViewById(R.id.gridview);
//		netGridView.setAdapter(new SearchAdapter(this));
//		netGridView.setOnItemClickListener(new OnItemClickListener() {
//			@Override
//			public void onItemClick(AdapterView<?> arg0, View arg1,
//					int arg2, long arg3) {
//			}
//		});
         
    }
    
  
}